package ams.action;

import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;

import com.opensymphony.xwork2.ActionSupport;

import ams.model.dto.DataGrid;
import ams.model.dto.ExecResult;

@ParentPackage("ajax")
@Namespace("/")
public class BaseAction<T> extends ActionSupport {

	private static final long serialVersionUID = 1L;

	/**
	 * 接收的参数
	 */
	//页码
	protected Integer page;
	//每页几条
	protected Integer rows;
	//id拼接字符串
	protected String ids;
	
	/**
	 * 返回的json对象
	 */
	//执行结果
	protected ExecResult execResult;
	//datagrid数据对象
	protected DataGrid<T> dataGrid;
	
	
	
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getRows() {
		return rows;
	}
	public void setRows(Integer rows) {
		this.rows = rows;
	}
	public String getIds() {
		return ids;
	}
	public void setIds(String ids) {
		this.ids = ids;
	}
	public ExecResult getExecResult() {
		return execResult;
	}
	public void setExecResult(ExecResult execResult) {
		this.execResult = execResult;
	}
	public DataGrid<T> getDataGrid() {
		return dataGrid;
	}
	public void setDataGrid(DataGrid<T> dataGrid) {
		this.dataGrid = dataGrid;
	}
	
}
